package excercise;

import java.util.Scanner;

public class EX07_Q30 {

	public static void main(String[] args) {
		// Q31
		String mycard = "";
		Scanner sc = new Scanner(System.in);
		int mycardno = sc.nextInt();
		
		int checkno1 = mycardno / 10000; 
		int checkno2 = mycardno / 100000;
				
		if ( checkno1 == 35 ) {
			if (mycardno == 356317) mycard = "JCB NH 농협";
			else if (mycardno == 356901) mycard = "JCB 신한카드";
			else if (mycardno == 356912) mycard = "JCB 국민카드";
		} else if ( checkno2 == 4 ) {
		} else if ( checkno2 == 5 ) {
		}
		System.out.println( mycard );
		
		// VO, Service 이용
		MyCardVO card = new MyCardVO( sc.nextInt() );
		System.out.println(
			MyCardService.checkMyCard( 
					card.getMyCardno() ) );
	}

}

class MyCardVO {
	private int mycardno;
	
	public MyCardVO() { }
	public MyCardVO( int mycardno ) { this.mycardno = mycardno; }
	
	public void setMyCardno( int mycardno ) { this.mycardno = mycardno; }
	public int getMyCardno() { return mycardno; }
}

class MyCardService { 
	public static String checkMyCard( int mycardno ) {
		String mycard = "";
		
		int checkno1 = mycardno / 10000; 
		int checkno2 = mycardno / 100000;
		
		if ( checkno1 == 35 ) {
			if (mycardno == 356317) mycard = "JCB NH 농협";
			else if (mycardno == 356901) mycard = "JCB 신한카드";
			else if (mycardno == 356912) mycard = "JCB 국민카드";
		} else if ( checkno2 == 4 ) {
		} else if ( checkno2 == 5 ) {
		}
		return mycard;
	}
}




